package com.aiobc.business.common.service.impl;

import com.aiobc.business.common.domain.SysDict;
import com.aiobc.business.common.mapper.DictMapper;
import com.aiobc.business.common.service.BasicService;
import com.aiobc.business.common.service.DictService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @Description
 * @Date 2021/10/19
 * @Created by liqiang
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, SysDict> implements DictService {
    @Override
    public List<SysDict> getList(){
        LambdaQueryWrapper<SysDict> wrapper = Wrappers.<SysDict>lambdaQuery().eq(SysDict::getStatus, SysDict.STATUS_NORMAL);
        return this.list(wrapper);
    }
}
